<?php

namespace app\model;

use think\Model;

class Menu extends Model
{
    protected $table = 'menu';

    public function children()
    {
        return $this->hasMany(Menu::class, 'pid');
    }
}